﻿@model PageList<SysDoc>
<table class="table table-striped table-bordered table-hover table-fix table-manage">
    <thead>
        <tr>
            <th class="w35px">
                <label><input class="checkbox-check" type="checkbox"><span></span></label>
            </th>
            <th class="text-center">标题</th>
            <th class="text-center w100px">分类</th>
            <th class="text-center w160px" data-order="@nameof(SysDoc.operate_date_time)">发布时间</th>
            <th class="text-center w120px">发布人</th>
            <th class="text-center w70px">状态</th>
            <th class="text-center w70px">操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var record in Model)
        {
        <tr>
            <td>
                <label><input class="checkbox-check" type="checkbox" value="@record.id"><span></span></label>
            </td>
            <td class="">
                <a class="uimodal" data-size="lg" data-url="@Url.Action("Details", new {id = record.id})">
                    @record.title
                </a>
            </td>
            <td class="text-center">@record.category</td>
            <td class="text-center">@DateTimeHelper.FormatDateHasSecond(record.operate_date_time)</td>
            <td class="text-center">@record.operate_user_name</td>
            <td class="text-center">@Html.BoolLabel(record.status,"有效", "无效")</td>
            <td class="text-center">
                <a class="color-primary uimodal" data-size="lg" data-toggle="tooltip"
                   data-url="@Url.Action("Edit", new {id = record.id})"
                   title="编辑">
                    <i class="fa fa-lg fa-edit"></i>
                </a>
                &nbsp;
                <a class="color-danger tsdelete" data-toggle="tooltip"
                   data-url="@Url.Action("Delete", new {id = record.id})"
                   title="删除">
                    <i class="fa fa-lg fa-trash-o"></i>
                </a>
            </td>
        </tr>
        }
    </tbody>
</table>
@Html.RenderPages(Model)